package cn.com.surker.production.dao;

import cn.com.surker.production.entity.PumpDayPrice;
import cn.com.surker.production.entity.vo.PumpDayPriceVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 生产泵送日报表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2024-12-09
 */
public interface PumpDayPriceDao extends BaseMapper<PumpDayPrice> {

	/**
	 * 查询数据
	 *
	 * @param page
	 * @param qw
	 * @return
	 */
	Page<PumpDayPriceVo> selectFull(Page<PumpDayPrice> page, String dbCode, @Param(Constants.WRAPPER) QueryWrapper<PumpDayPrice> qw);

	List<PumpDayPriceVo> selectFull(String dbCode, @Param(Constants.WRAPPER) QueryWrapper<PumpDayPrice> qw);

	/**
	 * 查询泵送汇总结算统计
	 * @return
	 */
	List<PumpDayPrice> findSupplierBill(Long orgId, Long contractId, Long pumpType,Long pumpNorms,Integer priceType,
										String startDate, String endDate);
}
